package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_snow_garden_visit", autoSave = true, dataUpload = true, eventName = "ice_visit")
public class LogSnowGardenVisit extends BaseLogEntity {
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "邀请类型", dataAttribute = "ice_invitetype")
    private int inviteType;
    @FieldTypeAnnotation(desc = "触发事件", dataAttribute = "ice_event")
    private int eventId;
    @FieldTypeAnnotation(desc = "触发事件参数")
    private String eventParam;
    @FieldTypeAnnotation(desc = "积分", dataAttribute = "ice_addscore")
    private int score;
    @FieldTypeAnnotation(desc = "时间")
    private Date time;

    public LogSnowGardenVisit(int activityId, long userId, int inviteType, int eventId, String eventParam, int score, Date time) {
        this.activityId = activityId;
        this.userId = userId;
        this.inviteType = inviteType;
        this.eventId = eventId;
        this.eventParam = eventParam;
        this.score = score;
        this.time = time;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getInviteType() {
        return inviteType;
    }

    public void setInviteType(int inviteType) {
        this.inviteType = inviteType;
    }

    public int getEventId() {
        return eventId;
    }

    public void setEventId(int eventId) {
        this.eventId = eventId;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getEventParam() {
        return eventParam;
    }

    public void setEventParam(String eventParam) {
        this.eventParam = eventParam;
    }
}
